﻿/*****************************************************************************  

 Version: 0.1
 Website: http://www.visuagile.com/
 
 Copyright (c) Yoganand R. All rights reserved.
 For continued development and updates, visit http://yogsbreath.net
 
 ******************************************************************************/
#region Imports

using System;
using System.Collections;
using System.Collections.Generic;
using System.Text;

using VisualAgile.IBLL;
using VisualAgile.IDAL;
using VisualAgile.Model;

#endregion


namespace VisualAgile.BLL
{
    public class StatusManager : BaseManager<Status>, IStatusManager
    {
        #region Properties

        public IStatusDao StatusDao { get; set; }

        #endregion

        protected override IBaseDao<Status> getBaseDAO()
        {
            return StatusDao;
        }

        /// <summary>
        /// Create a Status (the default value contains the return)
        /// </summary>
        /// <returns></returns>
        public Status NewStatus()
        {
            var Status = new Status();

            //System configuration can be used
            Status.CreateTime = DateTime.Now;                     
            
            return Status;
        }

        /// <summary>
        /// Access to Statuss
        /// </summary>
        /// <param name="IterationName">Iteration Id</param>
        /// <returns></returns>
        public IList GetByIteration(string IterationID)
        {
            return StatusDao.FindByIteration(IterationID);
        }
    }
}
